<template>
	<div>学生组件</div>
</template>

<script>
	import axios from 'axios'
	export default{
		name:'StudentList',
		methods:{
			list(){
				//http://localhost:8080/his/user/list
				//api/user/list
				
				// axios.get('/api/user/list').then(function(data){
					// this
				// })
				axios.get('/api/user/list').then((ret)=>{
					console.log(ret); //包含状态的  请求信息，
					if(ret.status == 200){
						 //后台的返回结果 {cdoe ,msg,data}
						 let data = ret.data ;//后台返回的结果
					}
				})
				
			}
		},
		created() {
			this.list()		
		}
	}
</script>

<style>
</style>
